﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Data;

/// <summary>
/// Summary description for ISanPham
/// </summary>
public interface ISanPham
{

    DataTable SelectTopSanPham(int top);
    SanPham selectbyid(string id);
    DataTable getbymasp();
    bool insertsp(string masp, string tensp, float dongia, int soluong, string trangthai, string hinh, string madm);
    DataTable selectSPbyDanhMuc(string MaDM);
    SanPham ConvertObjectDataTabletoSanPham(DataRow dr);
    DataTable SearchProduct(string categories, float costmin, float costmax, string productname);
}